package com.ruoyi.student.domain;

public class Student {
    int id;
    String sno;
    String sname;
    String gender;

//    找一个空白地方右键——>生成，点击getter and setter
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

//    这里重新toString 主要是为了等会展示比较方便，否则打印出来是class，看不懂
    @Override
    public  String toString(){
        return "Student{" +
                "id=" + id +
                "，sno=" + sno +
                "，sname=" + sname +
                "，gender=" + gender +
                "}";
    }
}
